<input type="button" class="button" value="<?php echo pluginlang('sharetoweibo','','weibo')?>" onclick="card();"/>
<script type="text/javascript">
function card(id) {
	var str = 0;
	var id = tag = '';
	$("input[name='ids[]']").each(function() {
		if($(this).attr('checked')==true) {
			str = 1;
			id += tag+$(this).val();
			tag = '|';
		}
	});
	if(str==0) {
		alert('<?php echo L('you_do_not_check');?>');
		return false;
	}
	window.top.art.dialog({title:'<?php echo pluginlang('sharetoweibo','','weibo')?>',id:'push',iframe:'?m=admin&c=plugin&a=config&pluginid=<?php echo $plugin_cfg['pluginid']?>&module=pushtoweibo&modelid=<?php echo $modelid?>&id='+id,width:'450',height:'300',yesText:'<?php echo pluginlang('startweibo','','weibo')?>',yesFn: function(){
var d = window.top.art.dialog({id:'push'}).data.iframe;d.sendtoweibo();return false;}})
}
</script>